package org.tcx.core.i18n;

import java.util.Locale;
import java.util.ResourceBundle;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.tcx.common.LogUtil;

public class I18N {
	private static Log log = LogFactory.getLog(I18N.class);
	public static String get(String name,Locale locale){
		log.debug("enter" + LogUtil.arg("name, locale", name, locale));
		ResourceBundle bundle = ResourceBundle.getBundle(I18N.class.getName(),locale);
		log.debug("leave");
		return bundle.getString(name);
	}
}
